package com.wn.class30.entity;

import java.io.Serializable;

/**
 * join_img_meal
 * @author 
 */
public class JoinImgMeal implements Serializable {
    private Integer joinImgMealId;

    /**
     * 菜品图路径
     */
    private String joinImgMealUrl;

    private String joinIimgMealDesc;

    private static final long serialVersionUID = 1L;

    public Integer getJoinImgMealId() {
        return joinImgMealId;
    }

    public void setJoinImgMealId(Integer joinImgMealId) {
        this.joinImgMealId = joinImgMealId;
    }

    public String getJoinImgMealUrl() {
        return joinImgMealUrl;
    }

    public void setJoinImgMealUrl(String joinImgMealUrl) {
        this.joinImgMealUrl = joinImgMealUrl;
    }

    public String getJoinIimgMealDesc() {
        return joinIimgMealDesc;
    }

    public void setJoinIimgMealDesc(String joinIimgMealDesc) {
        this.joinIimgMealDesc = joinIimgMealDesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JoinImgMeal other = (JoinImgMeal) that;
        return (this.getJoinImgMealId() == null ? other.getJoinImgMealId() == null : this.getJoinImgMealId().equals(other.getJoinImgMealId()))
            && (this.getJoinImgMealUrl() == null ? other.getJoinImgMealUrl() == null : this.getJoinImgMealUrl().equals(other.getJoinImgMealUrl()))
            && (this.getJoinIimgMealDesc() == null ? other.getJoinIimgMealDesc() == null : this.getJoinIimgMealDesc().equals(other.getJoinIimgMealDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJoinImgMealId() == null) ? 0 : getJoinImgMealId().hashCode());
        result = prime * result + ((getJoinImgMealUrl() == null) ? 0 : getJoinImgMealUrl().hashCode());
        result = prime * result + ((getJoinIimgMealDesc() == null) ? 0 : getJoinIimgMealDesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", joinImgMealId=").append(joinImgMealId);
        sb.append(", joinImgMealUrl=").append(joinImgMealUrl);
        sb.append(", joinIimgMealDesc=").append(joinIimgMealDesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}